<template>
	<view class="message" v-else-if="message.type === 'TIMFileElem'">
		<view class="file">
			<image style="width:100rpx;height:100rpx;border-radius:50%"
				src="https://liuliangbenben.oss-cn-hangzhou.aliyuncs.com/tx_im/file.png" />
			<view>{{ message.payload.fileName }}</view>
		</view>
	</view>
</template>

<script setup>
</script>

<style scoped lang="scss">
	
	view {
		box-sizing: border-box;
	}
	
	.file {
		display: flex;
		text-align: left;
		width: fit-content;
		word-break: break-all;
		font-size: 14px;
		background-color: white;
		padding: 10px 8px;
	}
</style>